Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2kc = require("kc");
exports.default = /* */function () {
  function _class3() {
    babel_classCallCheck(this, _class3);
    this.unuseMap = {};
    this.inuseMap = {};
    this.outPosX = 2 * $2kc.default.view_x + 100 * $2kc.default.randomInt(0, 10);
    this.outPosY = -5e3;
    this.outPosDist = 100;
  }
  babel_createClass(_class3, [{
    key: "put",
    value: function put(e) {
      e.opacity = 0;
      e.x = this.outPosX;
      this.outPosY += this.outPosDist;
      e.y = this.outPosY;
      this.unuseMap[e.uuid] = e;
      return this;
    }
  }, {
    key: "back",
    value: function back(e) {
      e.opacity = 0;
      e.x = this.outPosX;
      this.outPosY += this.outPosDist;
      e.y = this.outPosY;
      this.outPosY > 5e3 && (this.outPosY = -5e3);
      this.unuseMap[e.uuid] = e;
      delete this.inuseMap[e.uuid];
      return this;
    }
  }, {
    key: "del",
    value: function del(e) {
      delete this.inuseMap[e.uuid];
      delete this.unuseMap[e.uuid];
    }
  }, {
    key: "get",
    value: function get() {
      var e = null;
      for (var _t14 in this.unuseMap) {
        e = this.unuseMap[_t14];
        this.inuseMap[_t14] = e;
        delete this.unuseMap[_t14];
        break;
      }
      return e;
    }
  }]);
  return _class3;
}();